package org.se.scut.pinterest.mina.codec.coder.cxt;

import java.util.ArrayList;
import java.util.List;

import org.apache.mina.core.buffer.IoBuffer;
import org.se.scut.pinterest.mina.codec.msg.AllPictureTypeResultMessageItem;

public class AllPictureTypeResultContext extends BaseContext {

	public AllPictureTypeResultContext(){
		super(IoBuffer.allocate(200).setAutoExpand(true));
	}
	
	private String size;
	
	private String id;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getLastModifiedDate() {
		return lastModifiedDate;
	}

	public void setLastModifiedDate(String lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}

	private String typeName;
	
	private String lastModifiedDate;
	
	private List<AllPictureTypeResultMessageItem> items = new ArrayList<AllPictureTypeResultMessageItem>();
	
	public List<AllPictureTypeResultMessageItem> getItems() {
		return items;
	}

	public void setItems(List<AllPictureTypeResultMessageItem> items) {
		this.items = items;
	}
	
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	
	@Override
	public void resetData() {
		innerBuffer.clear();
		matchCount = 0;
		lineNumber = 0;
		size = "";
		items.clear();
		id = "";
		typeName = "";
		lastModifiedDate = "";
	}


}
